<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>
import CURDTable from '@/framework/components/table/CURDTable'
import { mineApi } from '@/feature/system/infra/api/mineApi'
import ColumnType from '@/framework/constant/ColumnType'
import YesNoEnum from '@/infra/constant/YesNoEnum'
import CheckStatusEnum from '@/infra/constant/CheckStatusEnum'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: mineApi,
        columns: [{
          label: '矿场名称',
          prop: 'keywords',
          searchable: true,
          hiddenInTable: true,
          hiddenInForm: true
        }, {
          label: '矿场名称',
          prop: 'mineName',
          fixed: 'left'
        }, {
          label: '审核状态',
          prop: 'checkStatus',
          type: ColumnType.SELECT,
          searchable: true,
          options: CheckStatusEnum,
          fixed: 'left'
        }, {
          label: '托管电价',
          prop: 'agentPowerPrice'
        }, {
          label: '是否有备用网络',
          type: ColumnType.SELECT,
          options: YesNoEnum,
          prop: 'backupNetworkFlag'
        }, {
          label: '矿场照片',
          type: ColumnType.IMAGE,
          prop: 'businessImage'
        }, {
          label: '营业执照图片',
          type: ColumnType.IMAGE,
          prop: 'businessLicense'
        }, {
          label: '矿场视频',
          prop: 'businessVideo'
        }, {
          label: '审核人',
          prop: 'checkOperator'
        }, {
          label: '审核备注',
          prop: 'checkRemark'
        }, {
          label: '审核时间',
          prop: 'checkTime'
        }, {
          label: '联系人',
          prop: 'contact'
        }, {
          label: '联系人邮箱',
          prop: 'contactEmail'
        }, {
          label: '联系人职位',
          prop: 'contactPosition'
        }, {
          label: '联系人电话',
          prop: 'contactTelephone'
        }, {
          label: '国家/地区',
          prop: 'country',
          searchable: true
        }, {
          label: '创建时间',
          prop: 'createTime'
        }, {
          label: '创建人',
          prop: 'creator'
        }, {
          label: '是否有防火墙等设施',
          prop: 'firewallFlag',
          type: ColumnType.SELECT,
          options: YesNoEnum
        }, {
          label: '附近是否有维修中心',
          prop: 'maintenanceCenterFlag',
          type: ColumnType.SELECT,
          options: YesNoEnum
        }, {
          label: '是否配备维修人员',
          prop: 'maintenanceFlag',
          type: ColumnType.SELECT,
          options: YesNoEnum
        }, {
          label: '维修人员数量',
          prop: 'maintenanceNum'
        }, {
          label: '经营许可证',
          prop: 'manageLicense'
        }, {
          label: '最高温度',
          prop: 'maxTemp'
        }, {
          label: '最低温度',
          prop: 'minTemp'
        }, {
          label: '修改人',
          prop: 'modifier'
        }, {
          label: '修改时间',
          prop: 'modifyTime'
        }, {
          label: '是否有监控设施',
          prop: 'monitorFlag',
          type: ColumnType.SELECT,
          options: YesNoEnum
        }, {
          label: '连接的网络',
          prop: 'networkType'
        }, {
          label: '物理环境',
          prop: 'physicalEnv'
        }, {
          label: '总电量',
          prop: 'powerCapacity'
        }, {
          label: '用电许可证',
          prop: 'powerLicense'
        }, {
          label: '每月累计断电',
          prop: 'powerLimitByMonth'
        }, {
          label: '裸电价',
          prop: 'powerPrice'
        }, {
          label: '用电来源',
          prop: 'powerSource'
        }, {
          label: '风沙情况',
          prop: 'sandwindEnv'
        }, {
          label: '支持的机器类型',
          prop: 'supportMachineType'
        }, {
          label: '总机位数',
          prop: 'totalSeatNum'
        }, {
          label: '可托管机位数',
          prop: 'trustableSeatNum'
        }, {
          label: '已通电电量',
          prop: 'usedPowerCapacity'
        }]
      }
    }
  },
  methods: {}
}
</script>

